package com.yunche.iov.entity;

import java.util.ArrayList;
import java.util.List;

public class DeviceExtendExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DeviceExtendExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDeviceIdIsNull() {
            addCriterion("device_id is null");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIsNotNull() {
            addCriterion("device_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceIdEqualTo(Integer value) {
            addCriterion("device_id =", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotEqualTo(Integer value) {
            addCriterion("device_id <>", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdGreaterThan(Integer value) {
            addCriterion("device_id >", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("device_id >=", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLessThan(Integer value) {
            addCriterion("device_id <", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLessThanOrEqualTo(Integer value) {
            addCriterion("device_id <=", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIn(List<Integer> values) {
            addCriterion("device_id in", values, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotIn(List<Integer> values) {
            addCriterion("device_id not in", values, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdBetween(Integer value1, Integer value2) {
            addCriterion("device_id between", value1, value2, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("device_id not between", value1, value2, "deviceId");
            return (Criteria) this;
        }

        public Criteria andOwnerNameIsNull() {
            addCriterion("owner_name is null");
            return (Criteria) this;
        }

        public Criteria andOwnerNameIsNotNull() {
            addCriterion("owner_name is not null");
            return (Criteria) this;
        }

        public Criteria andOwnerNameEqualTo(String value) {
            addCriterion("owner_name =", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameNotEqualTo(String value) {
            addCriterion("owner_name <>", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameGreaterThan(String value) {
            addCriterion("owner_name >", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameGreaterThanOrEqualTo(String value) {
            addCriterion("owner_name >=", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameLessThan(String value) {
            addCriterion("owner_name <", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameLessThanOrEqualTo(String value) {
            addCriterion("owner_name <=", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameLike(String value) {
            addCriterion("owner_name like", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameNotLike(String value) {
            addCriterion("owner_name not like", value, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameIn(List<String> values) {
            addCriterion("owner_name in", values, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameNotIn(List<String> values) {
            addCriterion("owner_name not in", values, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameBetween(String value1, String value2) {
            addCriterion("owner_name between", value1, value2, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerNameNotBetween(String value1, String value2) {
            addCriterion("owner_name not between", value1, value2, "ownerName");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardIsNull() {
            addCriterion("owner_idcard is null");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardIsNotNull() {
            addCriterion("owner_idcard is not null");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardEqualTo(String value) {
            addCriterion("owner_idcard =", value, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardNotEqualTo(String value) {
            addCriterion("owner_idcard <>", value, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardGreaterThan(String value) {
            addCriterion("owner_idcard >", value, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardGreaterThanOrEqualTo(String value) {
            addCriterion("owner_idcard >=", value, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardLessThan(String value) {
            addCriterion("owner_idcard <", value, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardLessThanOrEqualTo(String value) {
            addCriterion("owner_idcard <=", value, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardLike(String value) {
            addCriterion("owner_idcard like", value, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardNotLike(String value) {
            addCriterion("owner_idcard not like", value, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardIn(List<String> values) {
            addCriterion("owner_idcard in", values, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardNotIn(List<String> values) {
            addCriterion("owner_idcard not in", values, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardBetween(String value1, String value2) {
            addCriterion("owner_idcard between", value1, value2, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerIdcardNotBetween(String value1, String value2) {
            addCriterion("owner_idcard not between", value1, value2, "ownerIdcard");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneIsNull() {
            addCriterion("owner_phone is null");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneIsNotNull() {
            addCriterion("owner_phone is not null");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneEqualTo(String value) {
            addCriterion("owner_phone =", value, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneNotEqualTo(String value) {
            addCriterion("owner_phone <>", value, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneGreaterThan(String value) {
            addCriterion("owner_phone >", value, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("owner_phone >=", value, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneLessThan(String value) {
            addCriterion("owner_phone <", value, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneLessThanOrEqualTo(String value) {
            addCriterion("owner_phone <=", value, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneLike(String value) {
            addCriterion("owner_phone like", value, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneNotLike(String value) {
            addCriterion("owner_phone not like", value, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneIn(List<String> values) {
            addCriterion("owner_phone in", values, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneNotIn(List<String> values) {
            addCriterion("owner_phone not in", values, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneBetween(String value1, String value2) {
            addCriterion("owner_phone between", value1, value2, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerPhoneNotBetween(String value1, String value2) {
            addCriterion("owner_phone not between", value1, value2, "ownerPhone");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressIsNull() {
            addCriterion("owner_address is null");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressIsNotNull() {
            addCriterion("owner_address is not null");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressEqualTo(String value) {
            addCriterion("owner_address =", value, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressNotEqualTo(String value) {
            addCriterion("owner_address <>", value, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressGreaterThan(String value) {
            addCriterion("owner_address >", value, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressGreaterThanOrEqualTo(String value) {
            addCriterion("owner_address >=", value, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressLessThan(String value) {
            addCriterion("owner_address <", value, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressLessThanOrEqualTo(String value) {
            addCriterion("owner_address <=", value, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressLike(String value) {
            addCriterion("owner_address like", value, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressNotLike(String value) {
            addCriterion("owner_address not like", value, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressIn(List<String> values) {
            addCriterion("owner_address in", values, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressNotIn(List<String> values) {
            addCriterion("owner_address not in", values, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressBetween(String value1, String value2) {
            addCriterion("owner_address between", value1, value2, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andOwnerAddressNotBetween(String value1, String value2) {
            addCriterion("owner_address not between", value1, value2, "ownerAddress");
            return (Criteria) this;
        }

        public Criteria andInstallNameIsNull() {
            addCriterion("install_name is null");
            return (Criteria) this;
        }

        public Criteria andInstallNameIsNotNull() {
            addCriterion("install_name is not null");
            return (Criteria) this;
        }

        public Criteria andInstallNameEqualTo(String value) {
            addCriterion("install_name =", value, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallNameNotEqualTo(String value) {
            addCriterion("install_name <>", value, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallNameGreaterThan(String value) {
            addCriterion("install_name >", value, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallNameGreaterThanOrEqualTo(String value) {
            addCriterion("install_name >=", value, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallNameLessThan(String value) {
            addCriterion("install_name <", value, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallNameLessThanOrEqualTo(String value) {
            addCriterion("install_name <=", value, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallNameLike(String value) {
            addCriterion("install_name like", value, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallNameNotLike(String value) {
            addCriterion("install_name not like", value, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallNameIn(List<String> values) {
            addCriterion("install_name in", values, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallNameNotIn(List<String> values) {
            addCriterion("install_name not in", values, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallNameBetween(String value1, String value2) {
            addCriterion("install_name between", value1, value2, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallNameNotBetween(String value1, String value2) {
            addCriterion("install_name not between", value1, value2, "installName");
            return (Criteria) this;
        }

        public Criteria andInstallAddressIsNull() {
            addCriterion("install_address is null");
            return (Criteria) this;
        }

        public Criteria andInstallAddressIsNotNull() {
            addCriterion("install_address is not null");
            return (Criteria) this;
        }

        public Criteria andInstallAddressEqualTo(String value) {
            addCriterion("install_address =", value, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallAddressNotEqualTo(String value) {
            addCriterion("install_address <>", value, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallAddressGreaterThan(String value) {
            addCriterion("install_address >", value, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallAddressGreaterThanOrEqualTo(String value) {
            addCriterion("install_address >=", value, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallAddressLessThan(String value) {
            addCriterion("install_address <", value, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallAddressLessThanOrEqualTo(String value) {
            addCriterion("install_address <=", value, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallAddressLike(String value) {
            addCriterion("install_address like", value, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallAddressNotLike(String value) {
            addCriterion("install_address not like", value, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallAddressIn(List<String> values) {
            addCriterion("install_address in", values, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallAddressNotIn(List<String> values) {
            addCriterion("install_address not in", values, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallAddressBetween(String value1, String value2) {
            addCriterion("install_address between", value1, value2, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallAddressNotBetween(String value1, String value2) {
            addCriterion("install_address not between", value1, value2, "installAddress");
            return (Criteria) this;
        }

        public Criteria andInstallTelIsNull() {
            addCriterion("install_tel is null");
            return (Criteria) this;
        }

        public Criteria andInstallTelIsNotNull() {
            addCriterion("install_tel is not null");
            return (Criteria) this;
        }

        public Criteria andInstallTelEqualTo(String value) {
            addCriterion("install_tel =", value, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallTelNotEqualTo(String value) {
            addCriterion("install_tel <>", value, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallTelGreaterThan(String value) {
            addCriterion("install_tel >", value, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallTelGreaterThanOrEqualTo(String value) {
            addCriterion("install_tel >=", value, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallTelLessThan(String value) {
            addCriterion("install_tel <", value, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallTelLessThanOrEqualTo(String value) {
            addCriterion("install_tel <=", value, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallTelLike(String value) {
            addCriterion("install_tel like", value, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallTelNotLike(String value) {
            addCriterion("install_tel not like", value, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallTelIn(List<String> values) {
            addCriterion("install_tel in", values, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallTelNotIn(List<String> values) {
            addCriterion("install_tel not in", values, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallTelBetween(String value1, String value2) {
            addCriterion("install_tel between", value1, value2, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallTelNotBetween(String value1, String value2) {
            addCriterion("install_tel not between", value1, value2, "installTel");
            return (Criteria) this;
        }

        public Criteria andInstallUseridIsNull() {
            addCriterion("install_userid is null");
            return (Criteria) this;
        }

        public Criteria andInstallUseridIsNotNull() {
            addCriterion("install_userid is not null");
            return (Criteria) this;
        }

        public Criteria andInstallUseridEqualTo(Integer value) {
            addCriterion("install_userid =", value, "installUserid");
            return (Criteria) this;
        }

        public Criteria andInstallUseridNotEqualTo(Integer value) {
            addCriterion("install_userid <>", value, "installUserid");
            return (Criteria) this;
        }

        public Criteria andInstallUseridGreaterThan(Integer value) {
            addCriterion("install_userid >", value, "installUserid");
            return (Criteria) this;
        }

        public Criteria andInstallUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("install_userid >=", value, "installUserid");
            return (Criteria) this;
        }

        public Criteria andInstallUseridLessThan(Integer value) {
            addCriterion("install_userid <", value, "installUserid");
            return (Criteria) this;
        }

        public Criteria andInstallUseridLessThanOrEqualTo(Integer value) {
            addCriterion("install_userid <=", value, "installUserid");
            return (Criteria) this;
        }

        public Criteria andInstallUseridIn(List<Integer> values) {
            addCriterion("install_userid in", values, "installUserid");
            return (Criteria) this;
        }

        public Criteria andInstallUseridNotIn(List<Integer> values) {
            addCriterion("install_userid not in", values, "installUserid");
            return (Criteria) this;
        }

        public Criteria andInstallUseridBetween(Integer value1, Integer value2) {
            addCriterion("install_userid between", value1, value2, "installUserid");
            return (Criteria) this;
        }

        public Criteria andInstallUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("install_userid not between", value1, value2, "installUserid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}